Skip to content

fix: release failed handoff leases and honour demo --db - #78

Merged
HarryHeYu merged 1 commit into
mainfrom
r14-post-release-fixes
Nov 23, 2026
Merged

HarryHeYu merged 1 commit into
mainfrom
r14-post-release-fixes

Conversation

@HarryHeYu

Copy link
Copy Markdown
Owner

What changed

Two evidence-backed fixes from R14 independent review:

  1. handoff_thread now releases its single-writer lease when either bundle-directory creation or atomic file writing fails. Failed handoffs no longer leave the WorkThread leased to a target that never received a bundle, so the next legal handoff is not refused until someone runs thread unlock --steal.
  2. voyager demo --db PATH now honours the global database override before or after the subcommand. The synthetic demo seeds exactly the requested index instead of silently writing the default demo.db under the real home directory.

Evidence

  • R14 Phase A: handoff_thread write failure -> lease holder grok, second legal handoff refused.
  • R14 Phase B: voyager --db <isolated> demo ignored the override and wrote the real home.
  • Red first: 4 new regression tests fail on 65ae299.
  • Green after fix: 19 targeted tests pass (new tests plus lease/demo suites).
  • Mutation check: reverting each production fix makes its two new tests fail.
  • Docs/consistency: 56 tests pass.

Scope / boundaries

  • No Store or Bridge schema change.
  • No published tag, release, or README install pin change.
  • No real user session or credential read.
  • No GUI/model/live-agent claim.

Also honour the global --db flag for voyager demo. Regression tests pin both contracts.
Copilot AI balanced review requested due to automatic review settings November 23, 2026 16:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@HarryHeYu
HarryHeYu merged commit 351cb45 into main Nov 23, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants